import request from "@/utils/request";

// 基础路径
const baseUrl = import.meta.env.VITE_APP_PORTAL_API;

// 获取列表
export function getAllList(query) {
  return request({
    url: baseUrl + "/log/getPage",
    method: "get",
    params: query,
  });
}

// 添加日志
export function addLogsApi(params) {
  return request({
    url: baseUrl + "/log/saveLogs",
    method: "post",
    params,
  });
}